<!-- This document was created with HomeSite 2.5 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--

	---------------
	
	---------------

    THE JAVASCRIPT COOKBOOK by Erica Sadun, webrx@mindspring.com
							   J. Brook Monroe, mrprogguy@techie.com
    Copyright (c)1998 by Charles River Media.  All Rights Reserved.
    
    This applet can only be re-used or modifed by license holders of the
    JavaScript Cookbook CD-ROM.  Credit must be given in the source
    code and this copyright notice must be maintained. If you do
    not hold a license to the JavaScript Cookbook, you may NOT
    duplicate or modify this code for your own use.

    Use at your own risk. No warranty is given or implied of the suitability 
    of this applet for any specific application. Neither Erica Sadun nor 
    Charles River Media will be held responsible for any unwanted effects 
    due to the use of this applet or any derivative. 
-->

<HTML>
<HEAD>
	<TITLE>Multimedia Presentation</TITLE>

<SCRIPT SRC="music-object.js"></SCRIPT>	

<SCRIPT LANGUAGE="JavaScript1.1"><!--

var checkObj;
var slideNum = 0;
var intervalID = 0;
var curSlide;
var soundDur = new Array(12250,12250,13250,13250,8750);

sound1  = new musicObject("sound1");
sound2  = new musicObject("sound2");
sound3  = new musicObject("sound3");
sound4  = new musicObject("sound4");
fanfare = new musicObject("fanfare");

function NextSlide()
{
	slideNum++;
	if(slideNum < 5) {
		slideName = "../GRAFX/SLIDES/CROC"+slideNum+".JPG";
		soundName = "sound"+slideNum;
		document.images[0].src = slideName;
		PlaySoundtrack(soundName);
		setTimeout("NextSlide()",soundDur[slideNum]);
	}
}

function CheckSlide()
{
	with(window[curSlide])
		if(!isPlaying()) {
			NextSlide();
			clearInterval(intervalID);
		}
}

function PlaySoundtrack(name)
{
	with(window[name])
		if(isReady()) {
			setAutostart(true);
			play();
		}
}

//-->
</SCRIPT>	
</HEAD>

<BODY BGCOLOR="000000">

<SCRIPT LANGUAGE="JavaScript1.1">
document.writeln('<CENTER><IMG SRC="../GRAFX/SLIDES/TITLE.JPG" WIDTH=600 HEIGHT=400 BORDER=0></CENTER>');
setTimeout("NextSlide()",soundDur[0]);
document.write('<EMBED SRC="../AUDIO/JINGLE.WAV" TYPE="audio/wav" NAME="fanfarePlugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=true ONREADY="fanfare.setReady()">');
document.write('<EMBED SRC="../AUDIO/SLIDE1.WAV" TYPE="audio/wav" NAME="sound1Plugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="sound1.setReady()">');
document.write('<EMBED SRC="../AUDIO/SLIDE2.WAV" TYPE="audio/wav" NAME="sound2Plugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="sound2.setReady()">');
document.write('<EMBED SRC="../AUDIO/SLIDE3.WAV" TYPE="audio/wav" NAME="sound3Plugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="sound3.setReady()">');
document.write('<EMBED SRC="../AUDIO/SLIDE4.WAV" TYPE="audio/wav" NAME="sound4Plugin" HIDDEN WIDTH=160 HEIGHT=80 AUTOSTART=false ONREADY="sound4.setReady()">');
</SCRIPT>

<BR><BR><BR><BR><BR><BR><BR><BR><h5>Copyright ©1998 by Charles River Media, All Rights Reserved</h5></BODY>
</HTML>